using System;
using InfoJetSoft.Service.Entity;

namespace InfoJetSoft.Service.ManagedCode
{
	/// <summary>
	/// Summary description for ViewInfo.
	/// </summary>
	public class ViewInfo : Microsoft.Office.Interop.InfoPath.SemiTrust.ViewInfoObject
	{
		private Manifest manifest = null;
		private View view = null;

		public ViewInfo( Manifest mani, View vw )
		{
			this.manifest = mani;
			this.view = vw;
		}

		public string Name 
		{ 
			get
			{
				return this.view.Name;
			}
		}

		public bool IsDefault 
		{ 
			get
			{
				if( manifest.DefaultView.Equals( this.view ) )
				{
					return true;
				}
				else
				{
					return false;
				}
			}

			set
			{
				
			}
		}

	}
}
